import request from '@/utils/request'

/**
 * 查询华才汇盐活动分页列表
 */
export function pageListActivity(query) {
    return request({
        url: '/hchy/activity/pageList',
        method: 'get',
        params: query
    })
}

/**
 * 查询华才汇盐活动所有列表
 */
export function listActivity(query) {
    return request({
        url: '/hchy/activity/list',
        method: 'get',
        params: query
    })
}

/**
 * 查询华才汇盐活动详细
 */
export function getActivity(id) {
    return request({
        url: '/hchy/activity/' + id,
        method: 'get'
    })
}

/**
 * 新增华才汇盐活动
 */
export function addActivity(data) {
    return request({
        url: '/hchy/activity',
        method: 'post',
        data: data
    })
}

/**
 * 修改华才汇盐活动
 */
export function updateActivity(data) {
    return request({
        url: '/hchy/activity',
        method: 'put',
        data: data
    })
}

/**
 * 删除华才汇盐活动
 */
export function delActivity(id) {
    return request({
        url: '/hchy/activity/' + id,
        method: 'delete'
    })
}
